<div class="row searchLineWrap">
	<form id="articleForm" name="articleForm" action="${cxt!}/cms/academyArticle/list" method="post" class="form-horizontal">
		<div class="col-lg-12">
			<div class="row">
				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["wealth.college.articletitle"]}</label>
						<div class="col-md-7">
							<input type="text" class="form-control" name="academyArticle.l_title" placeholder="${_res['wealth.college.articletitle']}" value="${paramMap['academyArticle.l_title']}" />
						</div>
					</div>
				</div>
				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["wealth.college.category"]}</label>
						<div class="col-md-7">
							<#dict type="select"  name="academyArticle.l_category"  dictCode="ARTICLE_CLASSIFICATION" defaultValue="${paramMap['academyarticle.l_category']}" value="${paramMap['academyArticle.l_category']}"/>
						</div>
					</div>
				</div>
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["wealth.college.posted"]}</label>
						<div class="col-md-7">
							<#dict type="select"  name="academyArticle.l_posted"  dictCode="ARTICLE_POSTED" defaultValue="${paramMap['academyarticle.l_posted']}" value="${paramMap['academyArticle.l_posted']}"/>
						</div>
					</div>
				</div>
				
				<div class="col-md-2">
					<div class="form-group">
						<% if(hasPrivilegeUrl("getAcademyarticleList")){ %>
							<button type="button" class="btn btn-primary pull-left" onclick="ajaxForm('content','articleForm')">
								<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
							</button> 
						<% } %>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>

<div class="row searchLineWrap">
	<p>
		<a href="javascript:void(0);" onClick="ajaxContent('/admin/toUrl?toUrl=/realty/academyarticle/add.html');" class="btn btn-primary pull-left">
			${_res["wealth.college.addarticle"]}
		</a>
		<div class="clearfix"></div> 
	</p>
	<table class="table table-bordered" id="list-table">
		<thead>
			<tr>
				<th>${_res["wealth.college.articletitle"]}</th>
				<th>${_res["wealth.college.articlesubtitle"]}</th>
				<th>${_res["wealth.college.category"]}</th>
				<th>${_res["wealth.college.subcategory"]}</th>
				<th>${_res["wealth.college.posted"]}</th>
				<th>${_res["wealth.college.hot"]}</th>
				<th>${_res["wealth.college.readcount"]}</th>
				<th>${_res["user.review.processor"]}</th>
			</tr>
		</thead>
		<tbody>
			<% for(record in splitPage.list!){ %>
			<tr>
				<td style="background-color: rgb(255, 255, 255);">${record.title!}</td>
				<td style="background-color: rgb(255, 255, 255);">${record.subtitle!}</td>
				<td style="background-color: rgb(255, 255, 255);">
				<#dict type="lable"  value="${record.category!}" name="academyarticle.category" id="category" dictCode="ARTICLE_CLASSIFICATION" />
				</td>
				<td style="background-color: rgb(255, 255, 255);">
				
					<#dict type="lable" value="${record.subcategory!}" name="academyarticle.subcategory" dictCode="${record.dictCode!}" />
					
				</td>
				
				<td style="background-color: rgb(255, 255, 255);">
					<#dict type="lable" value="${record.posted!}" name="academyarticle.posted" dictCode="ARTICLE_POSTED" />
				</td>
				<td style="background-color: rgb(255, 255, 255);">
				<#dict type="lable" value="${record.hot!}" name="academyarticle.hot" dictCode="COMMON_YN" /></td>
				<td style="background-color: rgb(255, 255, 255);">${record.readcount!}</td>
				<td style="background-color: rgb(255, 255, 255);">
					<% if(hasPrivilegeUrl("academyArticleToUpdate")){ %>
						<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/cms/academyArticle/toUpdate/${record.id!}')">
							${_res["system.edit"]}
						</button>
					<% } %>
					<% if(hasPrivilegeUrl("academyArticleDelete")){ %>
						<button type="button" class="btn btn-sm btn-link" data-trigger="confirm" onClick="ajaxDelete('/cms/academyArticle/delete/${record.id!}')">
							${_res["system.delete"]}
						</button>
					<% } %>
				</td>
			</tr>
			<%}%>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="articleForm" /></div>
	<#nav />
</div>